<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="./Tpl/css/bootstrap.min.css">
	<style type="text/css">
		.main{
			margin-top: 100px;
		}

	</style>
</head>
<body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">留言板</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
            <div class="form-group">
              <input type="text" placeholder="Email" class="form-control">
            </div>
            <div class="form-group">
              <input type="password" placeholder="Password" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">Sign in</button>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>


    <div class="container main">
      <?php var_dump($row) ?>
      <!-- Example row of columns -->
      <div class="col-md-12" style="margin-top:20px;">
      	<form class="form-inline" action="./save.php?id=<?php echo $id ?>" method="post">
		  <div class="col-md-12">
		  	<div class="form-group">
		    <label for="exampleInputName2">Name</label>
		    <input type="text" class="form-control" id="exampleInputName2" name="username" placeholder="Jane Doe" value="<?php echo $row['username'] ?>">
		  </div>
		  <button type="submit" class="btn btn-default">修改</button>
		  </div>
		  <div class="col-md-12" style="margin:20px 0px;">
		  	<textarea class="form-control" rows="3" style="width:100%" name="content"><?php echo $row['content'] ?></textarea>
        <input type="hidden" name="id" value="<?php echo $id ?>">
		  </div>
		</form>
      </div>
      <hr>

      <footer>
        <p>© 2016 Company, Inc.</p>
      </footer>
    </div> 
  

</body>
</html>